package 适配器模式.双向适配器;

public class Client {
    public static void main(String[] args) {

        //使用接口适配器，创建内部类
        System.out.println("我是小猫，现在开始学狗叫");
        AbsShort cat = new AbsShort() {
            public void DogShort() {
                System.out.println("汪汪汪");
            }
        };
        cat.DogShort();

        System.out.println("---------------------------------------------------");
        System.out.println("我是小狗，现在开始学猫叫");
        AbsShort dog = new AbsShort() {
            public void CatShort() {
                System.out.println("喵喵喵");
            }
        };
        dog.CatShort();
    }
}
